package com.greedy.tank;

/**
 * @Author: Yanxy
 * @Date: Created in:2023-06-11
 * Description: 新建一个窗口出来
 */
public class Main {

    /**
     * main方法
     */
    public static void main(String[] args) {
        TankFrame tankFrame = new TankFrame();

        // 无限循环，每隔50ms刷新一次
        while (true) {
            try {
                Thread.sleep(50);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            tankFrame.repaint();
        }
    }


}
